import { Component, EventEmitter, Input, Output } from '@angular/core';

@Component({
  selector: 'app-comp-level-selector',
  templateUrl: './comp-level-selector.component.html',
  styleUrls: ['./comp-level-selector.component.scss']
})
export class CompLevelSelectorComponent {

  @Input() required: boolean = false

  @Input() value: string = ""

  @Output() valueChange = new EventEmitter<any>()

  handleChange(selector: any) {
    const value = selector.detail.value
    this.valueChange.emit(value)
  }
  
}
